package com.cai.oamanager.dao;

import com.cai.oamanager.entity.Depart;
import com.cai.oamanager.entity.Domain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/16 18 : 03
 * @package：com.cai.oamanager.dao
 */
@Mapper
public interface DepartDao {

    List<Depart> getAllDepart(@Param("start") Integer start,@Param("size") Integer size);

    Depart getDepart(@Param("id") Integer id);

    void deleteDepart(@Param("id") Integer id);

    void updateDepart(@Param("depart") Depart depart);

    Integer getCountDepart();

    List<Domain>  getAllDomain();




}
